// out: ../css/
@import "./base";

@vw: 3.75vw;
body {
  background-color: #f9fafb;
}
header {
  width: 100%;
  height: (50 / @vw);
  padding-right: (15 / @vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  position: fixed;
  left: 0;
  top: 0;

  .logo {
    width: (235 / @vw);
    height: 100%;

    img {
      width: 90%;
      height: 100%;
    }
  }

  .download {
    font-size: (16 / @vw);
    width: (80 / @vw);
    height: (30 / @vw);
    background-color: #ffe31b;
    border-radius: (15 / @vw);
    text-align: center;
    line-height: (30 / @vw);
  }
}
// search
.search {
  width: 100%;
  margin-top: (60 / @vw);
  margin-bottom: (10 / @vw);
  div {
    font-size: (16 / @vw);
    line-height: (32 / @vw);
    text-align: center;
    color: #a1a4b3;
    background-color: #f2f4f5;
    margin: 0 (15 / @vw);
    height: (32 / @vw);
    border-radius: (16 / @vw);
    span {
      font-size: (16 / @vw);
    }
    a {
      font-size: (16 / @vw);
    }
  }
}
// banner
.banner {
  padding: 0 (15 / @vw);
  height: (108 / @vw);
  text-align: center;
  overflow: hidden;
  img {
    width: (345 / @vw);
    border-radius: (5 / @vw);
  }
}
// rank
.rank {
  margin: (20 / @vw) 0;
  padding: 0 (15 / @vw);
  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    h4 {
      font-size: (20 / @vw);
    }
    a {
      color: #a1a4b3;
      font-size: (12 / @vw);
      .iconfont{
        font-size: (16 / @vw);
      }
    }
  }

  .content {
    margin-top: (20 / @vw);
    border-radius: (10 / @vw);
    ul {
      li {
        display: flex;
        font-size: (12 / @vw);
        color: #a1a4b3;
        background-color: #fff;
        margin-bottom: (15 / @vw);
        img {
          width: (105 / @vw);
          height: (105 / @vw);
          border-radius: (10 / @vw);
          margin-right: (15 / @vw);
        }
        div {
          a {
            display: block;
            height: (28 / @vw);
            width: 100%;
            font-size: (16 / @vw);
            color: #333;
            margin-top: (10 / @vw);
            .iconfont{
              font-size: (16 / @vw);
            }
          }
          p {
            margin-bottom: (5 / @vw);
          }
        }
      }
    }
  }
}

// 推荐歌单
.recommend {
  margin: (15 / @vw) 0;
  padding: 0 (15 / @vw);
  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    h4 {
      font-size: (20 / @vw);
    }
    a {
      color: #a1a4b3;
      font-size: (12 / @vw);
      .iconfont{
        font-size: (16 / @vw);
      }
    }
  }
  .content {
    margin-top: (20 / @vw);
    border-radius: (10 / @vw);
    ul {
      display: flex;
      justify-content: space-between;
      align-items: center;
      li {
        position: relative;
        width: (105 / @vw);
        margin-bottom: (10 / @vw);
        img {
          width: (105 / @vw);
          height: (105 / @vw);
          border-radius: (10 / @vw);
        }
        p {
          font-size: (14 / @vw);
        }
        div {
          font-size: (16 / @vw);
          width: (70 / @vw);
          height: (28 / @vw);
          text-align: center;
          line-height: (28 / @vw);
          position: absolute;
          border-radius: (5 / @vw);
          bottom: (38 / @vw);
          left: 0;
          color: #fff;
          background-color: rgba(0, 0, 0, 0.8);
          .iconfont{
            font-size: (16 / @vw);
          }
        }
      }
    }
  }
}

// footer
footer {
  width: 100%;
  height: (45 / @vw);
  padding: 0 (15 / @vw);
  position: fixed;
  bottom: (15 / @vw);
  left: 0;
  .install {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 (15 / @vw);
    background-color: #fff;
    border-radius: (22.5 / @vw);
    img {
      width: (36 / @vw);
      height: (36 / @vw);
      margin-right: (10 / @vw);
    }
    p {
      flex: 1;
      font-size: (16 / @vw);
    }
    a {
      display: block;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: (32 / @vw);
      width: (32 / @vw);
      height: (32 / @vw);
      background-color: #f2f3f5;
      border-radius: (16 / @vw);
      span {
        font-size: (16 / @vw);
      }
    }
  }
}
